package routes

import (
	"ssr/handlers"

	"github.com/gin-gonic/gin"
)

func WaterRoutes(r *gin.Engine) {
	waterHandler := handlers.NewWaterHandler()

	route := r.Group("/water")
	{
		route.POST("/createDict", waterHandler.CreateDict)
		route.POST("/getDictList", waterHandler.GetDictList)
		route.POST("/deleteDict", waterHandler.DeleteDict)
		route.POST("/recharge", waterHandler.Recharge)
		route.POST("/getWaterOrderList", waterHandler.GetWaterOrderList)
		route.POST("/createOrder", waterHandler.CreateOrder)
		route.POST("/deleteOrder", waterHandler.DeleteOrder)
		route.POST("/getOrderDetail", waterHandler.GetOrderDetail)
		route.POST("/confirmOrder", waterHandler.ConfirmOrder)
		route.POST("/cancelOrder", waterHandler.CancelOrder)
	}
}
